package com.market.service;

import com.market.entity.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandService {
    /**
     * 添加
     * @param brandName
     * @return
     */
    int addBrand(String brandName);

    /**
     * 修改
     * @param brandId
     * @param branName
     * @return
     */
    int changeBrand(Integer brandId, String branName);

    /**
     * 删除
     * @param brandId
     * @return
     */
    int deleteBrand(Integer brandId);

    /**
     * 品牌搜索
     *
     * @param namesOrId
     * @return
     */
    List<Brand> searchClasses(String namesOrId);
}
